home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / cse172.arc / CSE.DOC < prev    next >
Text File  |  1988-03-23  |  19KB  |  390 lines

  1.     Preliminary documentation for CSE Program Editor Version 1.72
  2.                IBM Version 1.72 by J. R. Applegate CSM
  3.                     Original CSE by Dan Smith CSM
  4.  
  5. OVERVIEW
  6.  
  7. CSE is a program editor to create ASCII files on the IBM Personal Computer.
  8. All editing and program functions may be assigned to any key via the DEFINE
  9. command. The key definitions may also be included in a macro file to be read
  10. in with the MACRO command or when CSE first starts. The default key definitions
  11. read in when CSE starts are contained in the file CSE.KEY. This file must be on
  12. the default drive and in the current directory when CSE starts unless the
  13. keypath option described later is used.
  14.  
  15. CSE has 4 distinct areas on the screen. The bottom line of the screen is
  16. reserved for errors and message display. This will normally be blank. The next
  17. line up is the status line and contains the filename of the current file, the
  18. row and column of the cursor, and the Insert/Replace status. The next line is
  19. in reverse video, and is called the command line. This is used to enter special
  20. commands to CSE. The rest of the screen is devoted to editing of the current
  21. file.
  22.  
  23. Up to 5 files may be read into memory at once. Text may be transferred between
  24. any of these files, and you may change from one file to the next at any time.
  25.  
  26. CSE does not create spill files when memory is full. When memory is depleted
  27. CSE will display a Memory full message and will not allow any operation that
  28. requires more memory. The number of bytes free is displayed on the right end
  29. of the status line. Deleting lines, text, or files will free memory and allow
  30. further editing.
  31.  
  32.  
  33. STARTING CSE
  34.  
  35. To start CSE simply enter CSE <RETURN>. An optional filename may be included
  36. after typing CSE and a space. If a filename is entered and exists on the
  37. specified drive, it will be opened and read into memory. If it does not exist
  38. CSE will create a new file with the specified name.
  39.  
  40.  
  41. EDITING FUNCTIONS
  42.  
  43. The folowing editing functions have been assigned to the specified keys. These
  44. may be reassigned with the DEFINE command.
  45.  
  46. Up Arrow        The Up arrow key moves the cursor one line up. If the cursor
  47.                 is at the top of the screen, the screen is scrolled down 1 line.
  48.  
  49. Down Arrow      Moves the cursor 1 line down. If the cursor is at the bottom of
  50.                 the screen, the screen will be scrolled 1 line up.
  51.  
  52. Left Arrow      Moves the cursor 1 character to the left. If the cursor is at
  53.                 the left edge of the screen and there is more text to the left,
  54.                 the screen will scroll right 32 columns.
  55.  
  56. Right Arrow     Moves the cursor 1 character to the right. If the cursor is at
  57.                 the right edge of the screen, the screen will scroll left 32
  58.                 columns to the left until the maximum line length of 255
  59.                 characters is reached.
  60.  
  61. Ctrl-Pg-Up      Moves the cursor and the screen to the first line of the file.
  62.  
  63. Ctrl-Pg-Dn      Moves the cursor and the screen to the bottom line of the file.
  64.  
  65. Ctrl-Left       Moves the cursor to the beginning of the line that it is on.
  66.  
  67. Ctrl-Right      Moves the cursor to the end of the line that it is on.
  68.  
  69. Pg-Up           Moves the screen 1 page up (20 lines). The cursor does not move.
  70.  
  71. Pg-Dn           Moves the cursor 1 page down (20 lines). The cursor does not
  72.                 move.
  73.  
  74. Ctrl-Home       Moves the cursor to the top edge of the screen.
  75.  
  76. Ctrl-End        Moves the cursor to the bottom edge of the screen.
  77.  
  78. Home            Moves the cursor to the first line of the file.
  79.  
  80. Ins             Toggles insert and replace modes.
  81.  
  82. Del             Deletes the character above the cursor.
  83.  
  84. Backspace       Deletes the character to the left of the cursor.
  85.  
  86. Ctrl-Backspace  Deletes the entire line that the cursor is on. Lines below will
  87.                 scroll up 1 line to close in the space.
  88.  
  89. Return          Inserts a new line below the line that the cursor is on, and
  90.                 moves the cursor to the beginning of the new line.
  91.  
  92. Tab             Moves the cursor to the next tab stop.
  93.  
  94. Shift-Tab       Moves the cursor to the previous tab stop.
  95.  
  96. Alt-X           The next character typed after Alt-X will be inserted as is
  97.                 into the file without interpretation by CSE. This is normally
  98.                 used to enter printer control codes into the file.
  99.  
  100. Alt-S           Splits the line at the cursor, and moves everything from the
  101.                 cursor to the end of the line to a new line inserted below the
  102.                 current line. To insert a line above the first line of the file
  103.                 move the cursor to the first column of the first line and enter
  104.                 Alt-S.
  105.  
  106. Alt-J           Joins the line that the cursor is on with the next line down.
  107.                 If the cursor is on the last line, this command does nothing.
  108.                 It doesn't matter where the cursor is on the line.
  109.  
  110. Esc             Toggles between Edit and Command modes.
  111.  
  112. F1              Displays a brief help file.
  113.  
  114. F2              Saves the current file using the name on the status line. See
  115.                 the name command to change the name.
  116.  
  117. F3              Saves the current file and then deletes the file from memory.
  118.                 If the current file is the only file in memory, this will also
  119.                 return to DOS.
  120.  
  121. F4              Quits the current file without saving it. If the current file
  122.                 is the only file in memory, this will return to DOS. If changes
  123.                 have been made CSE will verify that you want to quit.
  124.  
  125. F5              Erases the contents of the current line. The blank line is not
  126.                 deleted as it is with Ctrl-Backspace.
  127.  
  128. F6              Erases from the current cursor position to the end of the line.
  129.  
  130. F8              Switches between files in memory.
  131.  
  132. F9              Executes anything entered on the command line. This is used
  133.                 primarily with the LOCATE and CHANGE commands.
  134.  
  135. F10             Confirms text replacement when using the CHANGE command.
  136.  
  137.  
  138. BLOCK OPERATIONS
  139.  
  140. Blocks are defined in two ways with CSE. The first is called a line marked
  141. block. This is used to specify an entire line or group of lines for a block
  142. operation. The second type is called a character marked block. This is used to
  143. specify a rectangle of characters to move, copy, or delete. When a block is
  144. marked, it is indicated by reverse video on the screen.
  145.  
  146. Alt-L           Specifies the first line of a line marked block. If the cursor
  147.                 is moved to a new line and Alt-L is entered again, all lines
  148.                 between the first marked line and the second will be marked to
  149.                 specify a block of lines.
  150.  
  151. Alt-B           Specifies 1 corner of a character marked block. If the cursor is
  152.                 moved to a new row and/or column and Alt-B pressed again, a
  153.                 rectangle will be outlined with opposite corners specified by
  154.                 the two marked characters. This can be used to mark columns.
  155.  
  156. Alt-C           Copies a marked block. For line marked blocks, the copied lines
  157.                 will be inserted below the line the cursor is on. For character
  158.                 marked blocks, the block will be inserted with the upper left
  159.                 corner at the cursor. The original block is not unmarked.
  160.  
  161. Alt-D           Deletes the marked block.
  162.  
  163. Alt-F           Prompts for a character to be typed and fills the currently
  164.                 marked block with the typed character. Control characters may
  165.                 be entered.
  166.  
  167. Alt-M           Moves the marked block. For line marked blocks, the block will
  168.                 be moved below the line that the cursor is on. For character
  169.                 marked blocks, The block will be moved so that the upper left
  170.                 corner of the block is at the cursor.
  171.  
  172. Alt-U           Unmarks the currently marked block.
  173.  
  174.  
  175. COMMANDS
  176.  
  177. The following commands are entered on the reverse video command line at the
  178. bottom of the screen. (Use the Esc key to get to the command line.)
  179.  
  180. CHANGE /presentstring/newstring/<*>
  181.         The change command replaces a character or string of characters with
  182.         another string. You can replace one string at a time or all at once if
  183.         the optional asterisk is entered at the end of the command. Any
  184.         character may be substituted for the slashes in the command as long as
  185.         the character used does not appear in presentstring or newstring. After
  186.         entering the command on the command line it may be executed by pressing
  187.         Return or the Execute key (F9). If a match is found, the cursor will
  188.         be moved to the first character of presentstring in the file and the
  189.         message "Confirm change" will appear on the message line. Press F10 to
  190.         confirm the change, or any other key to abort. To continue with the
  191.         next ocurrence simply press the execute key (F9). The CHANGE command
  192.         may be shortened to just C/presentstring/newstring/<*> if desired.
  193.  
  194. DEFINE keyname = <[function]><'literal'>
  195.         The Define command is used to assign 1 or more functions and/or literal
  196.         strings to a specified key. Examples of key names are c-f10 for Ctrl-F10
  197.         s-up for Shift-Up arrow, and a-q for Alt-Q. The available key names are
  198.         listed in Appendix ?. Functions are assigned by placing the function
  199.         name in brackets []. The available functions are listed in Appendix ?.
  200.         Literal strings are enclosed in single or double quotes. If a single
  201.         quote is desired in the literal use double quotes to enclose the literal
  202.         and vice-versa. The number of characters may not exceed ?? in the define
  203.         command. The following command will cause the Shift-F1 key to insert a
  204.         new line below the current line and enter "CSM" in the third column:
  205.  
  206.         define s-f1 = [insert line][right][right]'CSM'
  207.  
  208.         All key assignments will remain in effect until CSE is terminated. A
  209.         key may be deassigned by entering:
  210.  
  211.         DEFINE keyname =
  212.  
  213.         DEFINE may be shortened to DEF if desired.
  214.  
  215. EDIT filename
  216.         The Edit commmand is used to read a new file into memory. If the file
  217.         does not exist, CSE will create a new file with the name specified in
  218.         the EDIT command. The new file becomes the active file. Use the F8 key
  219.         to switch files. The EDIT command may be shortened to E filename.
  220.  
  221. LOCATE /searchstring/
  222.         The locate command searches for the first ocurrence of searchstring from
  223.         the current cursor location to the end of the file. If found, the cursor
  224.         will be positioned on the first character of the specified string. The
  225.         execute key (F9) may be used to locate the next ocurrence. Any character
  226.         may be used for the slashes as long as that character does not appear in
  227.         searchstring. The abbreviated form of the LOCATE command is:
  228.  
  229.         /searchstring/
  230.  
  231.         Note that the slash character (/) must be used to delimit the string
  232.         and may not appear within searchstring.
  233.  
  234. MACRO filename
  235.         The Macro command is used to read in a series of commands from a macro
  236.         file and execute them. Any valid command line command may be used. The
  237.         most common use is to create macro files with different key definitions
  238.         for different programming requirements. An example would be a macro file
  239.         for FORTRAN programs and another for word processing requirements. MACRO
  240.         may be shortened to M filename.
  241.  
  242. NAME filename
  243.         The Name command replaces the current name on the status line with the
  244.         filename specified in the command. This may be used to save the current
  245.         file with a new name in order to save the previous version. (Otherwise
  246.         it would be overwritten if it had the same name). The NAME command may
  247.         be shortened to N filename.
  248.  
  249. DOS
  250.         The DOS command will invoke a secondary copy of the command processor.
  251.         This allows execution of DOS commands from within CSE. A common use of
  252.         this feature would be to obtain a directory while editing a file. Move
  253.         the cursor to the command line and enter the command DOS. The CSE
  254.         screen will clear and the DOS prompt will wait for the user to enter a
  255.         DOS command. Any DOS command may be executed, including running external
  256.         programs. Type EXIT to return back to CSE. You will be returned to the
  257.         same position in CSE before the DOS command was issued.
  258.  
  259. SET BACKUP <ON><OFF>
  260.         This command is used to turn on or off the automatic backup feature.
  261.         When backup is on and the file you are editing is saved, the original
  262.         input file will be renamed to have an extension of .BAK. If you created
  263.         the file during editing, no .BAK file will be created. If CSE cannot
  264.         create a backup file, a warning message will be printed, and CSE will
  265.         store the file as TEMP.$$$. Setting backup off will disable the
  266.         automatic backup feature and no .BAK files will be created.
  267.  
  268. SET TABS col1 col2 col3 ...
  269.         This command is used to set the screen column used for tab stops. Up
  270.         to 20 separate tab stops may be set. All tab columns must be specified
  271.         in ascending order after the SET TABS command. Tab columns must be
  272.         separated with spaces in the command. The following command will set
  273.         the first 10 tab stops to the indicated columns:
  274.  
  275.         SET TABS 9 17 25 33 41 49 57 65 73 81
  276.  
  277. SET COLOR <EDIT><COMMAND><STATUS><ERROR><BLOCK>:ATTRIBUTE
  278.         The SET COLOR command is used to change the colors used by CSE for
  279.         various portions of the screen. The screen is divided into 5 distinct
  280.         color areas. The EDIT area refers to the upper 22 lines of the screen.
  281.         The COMMAND area is line 23 (the command line). STATUS is line 24 and
  282.         is used for the status line. ERROR is line 25 and is used for all
  283.         error displays and the initial start-up screen. BLOCK is the area
  284.         occupied by a block or line marked block (Alt-B or Alt-L). Each of
  285.         these areas may be assigned a color by specifying the area followed
  286.         by a colon and attribute. Attributes for the TI Professional are as
  287.         follows:
  288.  
  289.         blue     9      green  12      white 15
  290.         red     10      cyan   13
  291.         majenta 11      yellow 14
  292.  
  293.         reverse video   add 16
  294.         underline       add 32
  295.         blink           add 64
  296.  
  297.         More than 1 region may be set with a single SET COLOR command. To set
  298.         the command line to reverse video red (10+16), and the edit screen to
  299.         yellow (14) the following command would be used:
  300.  
  301.         SET COLOR COMMAND:26 EDIT:14
  302.  
  303.  
  304.  
  305. KEYPATH FUNCTION
  306.  
  307.         The keypath function provides a means of telling CSE where CSE.KEY is
  308.         if it is not in the current directory. This is normally used for hard
  309.         disks so that CSE and it's key file CSE.KEY may be placed in a directory
  310.         and still be accessed from any other directory. This is done by
  311.         setting the DOS path command to search the directory that contains CSE.
  312.         This will allow DOS to find CSE. To enable CSE to find CSE.KEY however,
  313.         an additional string must be entered into DOS's environment using the
  314.         DOS SET command. The format for this is:
  315.  
  316. SET CSE.KEY = path
  317.  
  318.         where path specifies the drive and directory containing CSE.KEY. If
  319.         CSE were on drive E: in directory \EDIT\CSE the following SET command
  320.         would be used:
  321.  
  322. SET CSE.KEY = \EDIT\CSE
  323.  
  324.  
  325.  
  326. AVAILABLE KEYNAMES
  327.  
  328.         F1-F12,ins,del,up,down,left,right,linefeed,home,backspace,return,esc,tab
  329.  
  330. a-      A-Z,0-9,F1-F12,-,=,ins,del,up,down,left,right,linefeed,home,backspace
  331.  
  332. s-      F1-F12,ins,del,up,down,left,right,home,tab
  333.  
  334. c-      F1-F12,ins,del,up,down,left,right,linefeed,home,backspace
  335.  
  336.  
  337. AVAILABLE FUNCTIONS
  338.  
  339. backtab         moves to previous tab stop
  340. begin line      moves to beginning of line
  341. bottom          moves cursor to bottom of file
  342. bottom edge     moves cursor to bottom edge of screen
  343. command toggle  toggles cursor between command and edit modes
  344. confirm change  confirms the change when used with the CHANGE command
  345. copy block      copies the currently marked block
  346. cursor command  moves cursor to the command line
  347. cursor data     moves cursor to the edit screen
  348. delete char     deletes the character above the cursor
  349. delete line     deletes the line that the cursor is on
  350. delete block    deletes the currently marked block
  351. down            moves cursor 1 line down
  352. end line        moves cursor to the end of the current line
  353. erase end line  erases everything from the cursor to the end of the line
  354. escape          inserts the next character as is without interpretation
  355. execute         executes the command on the command line
  356. file            saves and quits the current file
  357. fill block      fills currently marked block with a character
  358. insert line     inserts a new line below the current line
  359. insert toggle   toggles insert/replace mode
  360. join            joins current line with the line below
  361. left            moves cursor 1 character left
  362. lowercase       converts currently marked block to lowercase
  363. mark block      marks a character marked block
  364. mark line       marks a line marked block
  365. move block      moves the currently marked block
  366. page down       scrolls screen 1 page (20 lines) down
  367. page up         scrolls screen 1 page (20 lines) up
  368. quit            deletes current file from memory without saving
  369. right           moves cursor 1 character to the right
  370. rubout          deletes the character to the left of the cursor
  371. save            saves the current file on disk
  372. split           splits the current line at the cursor
  373. switch file     switches active files when more than 1 file is in memory
  374. tab             moves cursor to the next tab stop
  375. top             moves cursor to the top of the page
  376. top edge        moves the cursor to the top edge of the screen
  377. unmark          unmarks the currently marked block
  378. up              moves cursor 1 line up
  379. uppercase       converts currently marked block to uppercase
  380.  
  381.  
  382. Address any problems or questions to:
  383.  
  384.         Joe Applegate
  385.         Computing Center
  386.         Colorado School of Mines
  387.         (303) 273-3396
  388.         (303) 273-3989 BBS 300/1200/2400 8-N-1
  389.  
  390.